package com.nxcy.common.bean;


import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class PagerInfo<T> implements Serializable {
    private Pager pager;
    private List<T> list;

    public PagerInfo() {
        this.pager=new Pager();
        this.list=new ArrayList<>();
    }

    public PagerInfo(Pager pager, List<T> list) {
        this.pager = pager;
        this.list = list;
    }

    public PagerInfo(int pageNum, int pageSize, List<T> list) {
        this.pager = new Pager(pageNum, pageSize);
        this.list = list;
    }

    public Pager getPager() {
        return pager;
    }

    public void setPager(Pager pager) {
        this.pager = pager;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}
